package com.example.blogsystem.mapper;

import com.example.blogsystem.model.entity.Blog;
import com.example.blogsystem.model.vo.BlogVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BlogMapper {

    List<BlogVo> selectAllBlogs();

    BlogVo selectById(Integer blogId);

    void insertBlog(Blog blogEntity);

    void deleteById(Integer blogId);

    void deleteByTitle(String title);

    void updateBlog(Blog blogEntity);


}
